home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: MacApp to ODF conversion
- Sent: 5/6/96 5:24 AM
- Received: 5/6/96 8:55 AM
- From: Serge Froment, sfroment@odyssee.net
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >Has anyone out there tried to convert a MacApp project to an ODF project?
- >Tips, opinions, suggestions, caveats, mistakes would be appreciated.
-
- I have converted MacApp code to ODF. It was easier than I expected.
- Converting a project from MacApp to ODF is not obvious since turning an
- application into a suite of OpenDoc parts usually involves major design
- change. This is why I have converted classes, not the whole project. I have
- started writing an ODF part from scratch and converted only the MacApp
- classes I needed, one class at a time as I needed them, and tested them in
- the ODF part I was writing. So the resulting part is a mix of new code and
- ported code.
-
- The biggest problem I encountered was strings: MacApp string indices are
- 1-based while ODF ones are 0-based. Porting code involving non-trivial
- string manipulation usually result in bugged code because it is easy to
- miss places where string indices calculation have to be changed.
-
- Porting graphic operations is much easier.
-
- Serge
-
-